package com.itheima.抽象类多态;

public abstract class 抽象类多态 {
    int a = 100;

    public abstract void method();
}

class A extends 抽象类多态 {
    int a = 200;

    @Override
    public void method() {
        System.out.println("多态:重写抽象类的method方法");
    }
}

class T2 {
    public static void main(String[] args) {
        抽象类多态 a = new A();
        a.method();
        System.out.println(a.a);
    }
}